﻿#include "CItemResultCamera.h"

CItemResultCamera::CItemResultCamera()
{
	m_sIRUrl = "";           //原始红外相机 图片地址
	m_sAlarmUrl = "";
	m_sHttpUrl = "";
	m_dTempMax = 0;          //最高温度
	m_dTempMin = 0;          //最低温度
	m_dTempAverage = 0;      //平均温度(用于判断检测结果)
}

CItemResultCamera::~CItemResultCamera()
{
}

void CItemResultCamera::copyData(CItemResultBase* pItemResult)
{
	//CItemResultBase::copyData(pItemResult);
	CItemResultCamera *pData = (CItemResultCamera*)pItemResult;
	pData->m_sIRUrl = m_sIRUrl;
	pData->m_sAlarmUrl = m_sAlarmUrl;
	pData->m_sHttpUrl = m_sHttpUrl;
	pData->m_dTempMax = m_dTempMax;
	pData->m_dTempMin = m_dTempMin;
	pData->m_dTempAverage = m_dTempAverage;

	//新增pdf报表需要的一些内容
	pData->m_sItemResultGuid = m_sItemResultGuid;
	pData->m_sPolAreaGuid = m_sPolAreaGuid;
	pData->m_sPointGuid = m_sPointGuid;
	pData->m_sItemGuid = m_sItemGuid;
	pData->m_sTaskGuid = m_sTaskGuid;
	pData->m_sTemplateGuid = m_sTemplateGuid;
	pData->m_sStartTime = m_sStartTime;
	pData->m_sTaskName = m_sTaskName;
	pData->m_sPointName = m_sPointName;
	pData->m_sItemName = m_sItemName;
	pData->m_sGuid = m_sGuid;
	pData->m_sDataThreadHoldHH = m_sDataThreadHoldHH;     //数字阈值--高高报警
	pData->m_sDataThreadHoldLL = m_sDataThreadHoldLL;     //数字阈值--低低报警
	pData->m_sDataThreadHoldH = m_sDataThreadHoldH;      //数字阈值--高报警
	pData->m_sDataThreadHoldL = m_sDataThreadHoldL;      //数字阈值--低报警
	pData->m_sTaskExecGuid = m_sTaskExecGuid;
	pData->m_nDevType = m_nDevType;
	pData->m_nCheckType = m_nCheckType;
	pData->m_nDevTypeCode = m_nDevTypeCode;
	pData->m_nBelong = m_nBelong;
	pData->m_dActionTime = m_dActionTime;
	pData->m_nAlarmLevel = m_nAlarmLevel;
	pData->m_nState = m_nState;
	pData->m_dValue = m_dValue;
	pData->m_sDataDesc = m_sDataDesc;
	pData->m_dRealLocation = m_dRealLocation;
	pData->m_nRollerNum = m_nRollerNum;
	pData->m_sRollerDesc = m_sRollerDesc;
	pData->m_bIsShow = m_bIsShow;
}
